@use './element/cover.scss' as *;

$border-radius-1: 5px;
$border-radius-2: 10px;
$border-radius-3: 15px;

:root {
    // 线条
    --border-radius-1: #{$border-radius-1};
    --border-radius-2: #{$border-radius-2};
    --border-radius-3: #{$border-radius-3};
}

#app,
body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none; //隐藏滚动条
}

svg {
    height: 25px;
    width: 25px;
    background: none;
}

.hover-pointer {
    cursor: pointer;

    &:hover {
        transform: scale(1.2);
    }
}

input,
textarea {
    height: 100%;
    width: 100%;
    color: var(--el-text-color-primary);
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    padding: 10px;
}

// 卡片
.ic-card {
    padding: 20px;
    font-size: 16px;
    color: var(--el-text-color-primary);
    background: var(--el-bg-color);
    border-radius: var(--border-radius-3);
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

// border动画
.ic-border-animation {
    position: relative;

    &:hover::after,
    &:hover::before {
        content: "";
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border: 3px solid var(--el-bg-color);
        border-radius: 20px;
        animation: clippath 3s linear;
    }

    &:hover::after {
        animation: clippath 3s -1.5s linear;
    }
}

@keyframes clippath {

    0%,
    100% {
        clip-path: inset(0 0 50% 0);
    }

    // 25% {
    //     clip-path: inset(0 70% 0 0);
    // }

    50% {
        clip-path: inset(50% 0 0 0);
    }

    // 75% {
    //     clip-path: inset(0 0 0 70%);
    // }
}

// 更多数据遮罩层
.more-mask {
    position: relative;
    height: 500px;
    overflow: hidden !important;

    &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100px;
        background: var(--bg-color-linear);
        bottom: 0;
        opacity: 0.7;
    }

    &::before {
        content: '＜＜＜';
        position: absolute;
        bottom: -4px;
        left: calc(50% - 23px);
        transform: rotate(-90deg) scaleY(2);
        color: var(--el-color-primary);
        z-index: 10;
    }
}

// 添加按钮
.ic-button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--el-text-color-primary);
    background-color: var(--el-bg-color);
    border-radius: var(--border-radius-2);
    margin-left: 10px;
    padding: 0 10px;
    cursor: pointer;

    &:hover {
        background-color: var(--el-bg-color-page);
    }
}

// 字体样式
.title1 {
    font-size: 24px;
    font-weight: 700;
}

.title2 {
    font-size: 22px;
    font-weight: 700;
}

.title3 {
    font-size: 20px;
}

.content1 {
    font-size: 20px;
    font-weight: 700;
}

.content2 {
    font-size: 18px;
    font-weight: 700;
}

.content3 {
    font-size: 16px;
}